home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2007 December
/
PCWKCD1207B.iso
/
Blogowanie poza sfera
/
Flock 0.9.1.3 stable
/
flock-0.9.1.3.en-US.win32.exe
/
flock
/
res
/
detect
/
youtube.xml
< prev
Wrap
Extensible Markup Language
|
2007-10-12
|
3KB
|
115 lines
<?xml version="1.0" encoding="utf-8"?>
<service name="youtube"
version="$Id: youtube.xml 13478 2007-07-19 19:45:26Z chris $"
xmlns="http://www.flock.com/web-detective#">
<strings>
<string name="domains" value="youtube.com"/>
<string name="userlogin">
<![CDATA[http://www.youtube.com/]]>
</string>
<string name="userprofile">
<![CDATA[http://www.youtube.com/profile?user=%accountid%]]>
</string>
<string name="editprofile">
<![CDATA[http://youtube.com/my_profile]]>
</string>
<string name="inbox">
<![CDATA[http://youtube.com/my_messages]]>
</string>
<string name="subscriptions">
<![CDATA[http://youtube.com/subscription_center]]>
</string>
</strings>
<sessioncookies>
<cookie host=".youtube.com" name="LOGIN_INFO" path="/"/>
</sessioncookies>
<detect type="login">
<url domain="youtube.com"/>
<form>
<field tagname="input" name="username" type="text"/>
<field tagname="input" name="password" type="password"/>
</form>
</detect>
<detect type="signup">
<url domain="youtube.com"><path contains="/signup"/></url>
<form>
<field tagname="input" name="username"/>
<field tagname="input" type="password" name="password2" extractas="password"/>
</form>
</detect>
<detect type="loggedin">
<xpath><![CDATA[//div[@id="baseDiv"]/div[@id="utilDiv"]//a/text()[contains(.,"Log Out")]]]></xpath>
</detect>
<detect type="loggedin">
<xpath><![CDATA[//table[@class="channelMastheadTable"]//a/text()[contains(.,"Log Out")]]]></xpath>
</detect>
<detect type="loggedout">
<xpath><![CDATA[//div[@id="baseDiv"]/div[@id="utilDiv"]//a/text()[contains(.,"Log In")]]]></xpath>
</detect>
<detect type="accountinfo">
<results>
<regexp re1="accountid">
<![CDATA[/Hello, <a +href="\/profile\?user=(.+?)"/]]>
</regexp>
</results>
</detect>
<detect type="person">
<conditions>
<url>
<path contains="profile"/>
<querystring contains="user="/>
</url>
</conditions>
<results>
<url>
<regexp re1="userid">
<![CDATA[/user=(\w+)/]]>
</regexp>
</url>
<document>
<regexp re1="addFriendURL">
<![CDATA[/a href="(.+?)">Add as Friend/]]>
</regexp>
</document>
</results>
</detect>
<detect type="person">
<regexp re1="userid">
<![CDATA[/subscription_center\?add_user=(.+?)"/]]>
</regexp>
<results>
<regexp re1="addFriendURL">
<![CDATA[/user_id=(\w+)/]]>
</regexp>
</results>
</detect>
<detect type="media">
<conditions>
<url><path contains="profile"/></url>
</conditions>
<url>
<regexp re1="userid">
<![CDATA[/user=(\w+)/]]>
</regexp>
</url>
</detect>
<detect type="media">
<regexp re1="userid">
<![CDATA[/kpu=(\w+)/]]>
</regexp>
</detect>
</service>